package com.bootdo.staff.dao;

import com.bootdo.staff.domain.StaffUserDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 员工表
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-04-23 13:59:00
 */
@Mapper
public interface StaffUserDao {

	StaffUserDO get(Long staffId);
	
	List<StaffUserDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(StaffUserDO staffUser);
	
	int update(StaffUserDO staffUser);
	
	int remove(Long staffId);
	
	int batchRemove(Long[] staffIds);

	StaffUserDO staffByName(String staffName);

	List<StaffUserDO> selectAll();

	StaffUserDO selectOne();

   List<StaffUserDO> listStatus(); 
   
   List<StaffUserDO> listWorker(Long smenuId); 

}
